package com.cskt.erptemplate.utils;


/**
 * @Author 陈厚德
 * @Version 2.2
 */
//自定义异常类
public class BaseException  extends  RuntimeException{


    private  String code ;

    public String getCode() {
        return code;
    }

    public  BaseException(ResultEnum resultEnum) {

        super(resultEnum.getMsg());

        this.code=resultEnum.getCode();

    }


    public  BaseException(String code,String msg) {
        super(msg);
        this.code=code;
    }




}
